<%@ tag pageEncoding="UTF-8" %>  
<%@ attribute name="container" required="true" rtexprvalue="true" %>  
<%@ attribute name="msgname" required="true" rtexprvalue="true" %>  
<%@ attribute name="url" required="true" rtexprvalue="true" %>  
<%@ attribute name="params" required="true" rtexprvalue="true" %>  
<%@ attribute name="totalpage" required="true" rtexprvalue="true" %>  

<div class="movingmore">
	<strong><a href="javascript:void(0)" class="morder">加载更多${msgname }</a></strong>
</div>

<script>
	
	var loadmore = {
		curpage:2,
		params:${params},
		totalpage:${totalpage}
	};
	
	$(function(){
		var $loadmoving = $('<div class="loadmoving"></div> ');
		$('.morder').click(function(){
			
			loadmore.params.curpage = loadmore.curpage;
			$loadmoving.appendTo($('.part_left'));
			$('.movingmore').hide();
			$.get("${url}",loadmore.params,function(html){
				$('${container}').append($.trim(html));
				loadmore.curpage = loadmore.curpage + 1;
				$loadmoving.remove();
				if(loadmore.curpage < loadmore.totalpage)
					$('.movingmore').show();
			});
		});
	});
</script>